package com.easymin.weixin.manager.impl;

import com.easymin.weixin.common.api.SalesApi;
import com.easymin.weixin.manager.SalesManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class DefaultSalesManager implements SalesManager {
  @Autowired
  SalesApi salesApi;

  @Override
  public Map<String, Object> coupons(Long id, String appKey) {
    return salesApi.coupons(id, appKey);
  }

  @Override
  public Map<String, Object> update(Long id, Integer status, String appKey) {
    return salesApi.update(id, status, appKey);
  }


}
